#setLocal(customJs=['/js/project/add-project.js'])
#@otherLayout() #define otherMain()
<div class="page-container">
	<form action="#(ctx)/project/adddProject" method="post" enctype="multipart/form-data" class="form form-horizontal">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>案例名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder=""  name="project.name">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>案例所属菜单：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
				<select name="project.menuId" class="select">
					#for(m:childMenus)
						<option value="#(m.id)" #if(currentMenuId==m.id) selected #end>#(m.name)</option>
					#end
				</select>
				</span> </div>
		</div>

		<div class="file_input_hidden hidden">
		<div class="input-prepend file_input" style="margin-bottom:15px;">
			<input type="file" name="file1" accept="application/x-javascript">
			<a href="javascript:;" onclick="add_project.del_file(this);return false;" style="margin-left:10px;">删除</a>		
		</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">案例图片：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div class="input-prepend file_input" style="margin-bottom:15px;">
					<input type="file" name="file1" accept="application/x-javascript">
				</div>
				<div class="input-prepend file_input" style="margin-bottom:15px;">
					<input type="file" name="file2" accept="application/x-javascript">
				</div>
			</div>
			<div>
				<a href="javascript:;" onclick="add_project.add_file(this);return false;" class="btn btn-success">添加一个文件</a>
			</div>
		</div>

		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button  class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				<button onclick="add_project.cancel('#(ctx)/project/childMenu');" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
#end